﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Mail;
using Meraz.Core.Config;

namespace Meraz.Core.Net
{
    public class PasswordReminder : MailInfo
    {
        public PasswordReminder(IUser user)
        {
            Message = new MailMessage();
            Message.To.Add(new MailAddress(user.Email));
            Message.Subject = Resources.Mail.PasswordReminderSubject;
            Message.IsBodyHtml = true;
            Message.Body = string.Format(Resources.Mail.PasswordReminderBody, user.DisplayName, user.Password);
        }
    }
}
